import {getSite} from "../../../../../service/site";

const app = getApp()
const global = app.globalData
Component({
    options:{
        styleIsolation: 'apply-shared',
    },
    properties: {
        value:{type:[String], value:''},
        balance:{
            type:Number, value:0,
            observer(data){
                this.setData({
                    _balance:data,
                })
            }
        },
        site:{type:Object, value:null}
    },
    data: {
        imageUrl:global.imageUrl,
        _balance:0,
    },
    lifetimes:{
        attached() {

        }
    },
    methods: {
        onChange(e){
            this.triggerEvent("change", e.detail)
        }
    },
});
